Objects Reference

textcacheGL::init

Prototype

void init(int np,picture **pic,void *data)

Parameters

Parameter Type Description
np int number of pictures in pic array
pic picture ** picture array

Return Value

None

Remarks

This is the OpenGL implementation for the textcache base class virtual function.

This function initializes the texture manager with a picture array. All pictures in the array will be loaded into the 3D hardware. For adding new pictures, use the add_picture function, for updating any picture pixels, use the update_picture and update_sub_picture member functions.